/**
  ******************************************************************************
  * @file    main.c
  * @author  armwind.chen@foxmail.com
  * @version V1.0
  * @date    2019.10.1
  * @brief   主程序，代码仅用于学习。
  * @宝贝链接：https://item.taobao.com/item.htm?spm=a2oq0.12575281.0.0.50111debxjgygH&ft=t&id=626242045207
  ******************************************************************************
  */
#include "led.h"
#include "usart.h"

/**
  * @brief  Main program.
  * @param  None
  * @retval None
  */
int main(void)
{
  /* Add your application code here
   *
   */
    delay_init();
    usart_config(1,9600); //串口1波特率9600
    //usart_config(2,9600);
    led_init();
    NVIC_EnableIRQ(USART1_IRQn);
  /* Infinite loop */
    while (1) {
            uart1SendChar(0x66);
            uart2SendChar(0x88);
            //led_set (LED_OFF);
            delay_ms (500);
            //led_set (LED_ON);
            //delay_ms (500);
    }
}
/************************ (C) COPYRIGHT weiduwulian*****END OF FILE****/
